package xyz.zdsoft.course_manage_module.service.imp;

import org.springframework.stereotype.Service;
import xyz.zdsoft.common.utils.Result;
import xyz.zdsoft.course_manage_module.mapper.DeleteCourseMapper;
import xyz.zdsoft.course_manage_module.service.AdminDeleteCourseService;

import javax.annotation.Resource;

@Service
public class AdminDeleteCourseServiceImpl implements AdminDeleteCourseService {
    @Resource
    private DeleteCourseMapper deleteCourseMapper;
    @Override
    public void DeleteCourse(Integer courseOnId) {
        deleteCourseMapper.DeleteCourse(courseOnId);
    }
    public Result deleteCourse(Integer courseOnId){
        DeleteCourse(courseOnId);
        return Result.ok().message("删除成功");
    }
}
